import {
  Dialog,
  Input,
  Switch,
  Button,
  DatePicker,
  TimeSelect,
  TimePicker,
  Form,
  FormItem,
  Card,
  Loading,
  MessageBox,
  Message,
  Row,
  Col,
  Empty,
  Link,
  Select,
  Option,
  Tag
} from "element-ui";

export default (_vue) => {
  _vue.use(Dialog);
  _vue.use(Input);
  _vue.use(Switch);
  _vue.use(Button);
  _vue.use(DatePicker);
  _vue.use(TimeSelect);
  _vue.use(TimePicker);
  _vue.use(Form);
  _vue.use(FormItem);
  _vue.use(Card);
  _vue.use(Row);
  _vue.use(Col);
  _vue.use(Empty);
  _vue.use(Link);
  _vue.use(Select);
  _vue.use(Option);
  _vue.use(Tag);

  _vue.use(Loading.directive);

  _vue.prototype.$loading = Loading.service;
  _vue.prototype.$msgbox = MessageBox;
  _vue.prototype.$alert = MessageBox.alert;
  _vue.prototype.$confirm = MessageBox.confirm;
  _vue.prototype.$prompt = MessageBox.prompt;
  _vue.prototype.$notify = Notification;
  _vue.prototype.$message = Message;
};
